﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HNPL.Sockets;

namespace ClientDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            UdpSocketTool tool = UdpSocketTool.CreateClientTool();
            byte[] bts = new byte[10000];
            new Random().NextBytes(bts);

            tool.BeginSendCookie(new System.Net.IPEndPoint(System.Net.IPAddress.Parse("127.0.0.1"), 5568), bts, 5);
            int i = 0;
            while (true)
            {
                i++;
                i--;
            }
        }
    }
}
